<?php

namespace App\Http\Presenters;

use Laracasts\Presenter\Presenter;

class TuserPresenter extends Presenter
{

    public function claseStatus()
    {
        switch ($this->status) {
            case 1:
                $value = '<span class="blue smaller-80">报名成功</span>';
                break;
            case 0:
                $value = '<span class="grey smaller-80">未录取</span>';
                break;
            case 2:
                $value = '<span class="orange smaller-80">录取</span>';
            default:
                break;
        }
        return $value;

    }


    public function claseSource()
    {
        switch ($this->source) {
            case 1:
                $value = '<i class="ace-icon fa fa-weixin green"></i>';
                break;
            case 2:
                $value = '<i class="ace-icon fa fa-desktop blue"></i>';
                break;
            default:
                break;
        }
        return $value;

    }

}
